home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / lib / mkmf / RCS / Makefile.test,v < prev    next >
Encoding:
Makefile  |  1989-10-10  |  5.6 KB  |  307 lines

  1. head     1.6;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @@;
  7.  
  8.  
  9. 1.6
  10. date     89.10.09.21.27.56;  author rab;  state Exp;
  11. branches ;
  12. next     1.5;
  13.  
  14. 1.5
  15. date     88.05.12.18.01.01;  author nelson;  state Exp;
  16. branches ;
  17. next     1.4;
  18.  
  19. 1.4
  20. date     88.04.28.17.40.54;  author ouster;  state Exp;
  21. branches ;
  22. next     1.3;
  23.  
  24. 1.3
  25. date     88.04.25.13.20.36;  author ouster;  state Exp;
  26. branches ;
  27. next     1.2;
  28.  
  29. 1.2
  30. date     88.04.25.09.26.37;  author ouster;  state Exp;
  31. branches ;
  32. next     1.1;
  33.  
  34. 1.1
  35. date     88.03.18.15.05.36;  author deboor;  state Exp;
  36. branches ;
  37. next     ;
  38.  
  39.  
  40. desc
  41. @Makefile template for test program source directories
  42. @
  43.  
  44.  
  45. 1.6
  46. log
  47. @Modifications for distribution.
  48. @
  49. text
  50. @#
  51. # Prototype Makefile for cmds/* directories.
  52. #
  53. # This Makefile is automatically generated.
  54. # DO NOT EDIT IT OR YOU MAY LOSE YOUR CHANGES.
  55. #
  56. # Generated from @@(TEMPLATE)
  57. # @@(DATE)
  58. #
  59. # For more information, refer to the mkmf manual page.
  60. #
  61. # $Header: /sprite/lib/mkmf/RCS/Makefile.test,v 1.5 88/05/12 18:01:01 nelson Exp Locker: rab $ SPRITE (Berkeley)
  62. #
  63. # Allow mkmf
  64.  
  65. PROGRAM        = @@(PROGRAM)
  66. OBJS        = @@(OBJS)
  67. CLEANOBJS    = @@(CLEANOBJS)
  68. SRCS        = @@(SRCS)
  69. CSRCS        = $(SRCS:M*.c)
  70. YSRCS        = $(SRCS:M*.y)
  71. LSRCS        = $(SRCS:M*.l)
  72. HDRS        = @@(HDRS)
  73. LIBS        =
  74. MAKEFILE    = @@(MAKEFILE)
  75. DISTDIR        ?= @@(DISTDIR)
  76.  
  77. LINTFLAGS    = -u
  78. CFLAGS        = -g
  79. CTFLAGS        = -wt
  80. INSTALLFLAGS    = 
  81. INSTALLDIR    = @@(INSTALLDIR)
  82.  
  83. # Don't define "define_targets", to keep "install" target from being defined.
  84. # define_targets    =
  85.  
  86. DEPFILE        = dependencies.mk
  87. SYSMAKEFILE    = command.mk
  88.  
  89. #if exists(local.mk)
  90. #include     "local.mk"
  91. #else
  92. #include    <$(SYSMAKEFILE)>
  93. #endif
  94.  
  95. $(PROGRAM)    : $(OBJS) $(LIBS) MAKECMDNOVERS
  96. lint        : $(SRCS) MAKELINT
  97.  
  98. tags        : $(SRCS) $(HDRS)
  99.     $(CTAGS) $(CTFLAGS) $(.ALLSRC)
  100.  
  101. #include    "dependencies.mk"
  102. @
  103.  
  104.  
  105. 1.5
  106. log
  107. @fixed include of $SYSMAKEFILE to be <$(SYSMAKEFILE)>
  108. @
  109. text
  110. @d12 1
  111. a12 1
  112. # $Header: Makefile.test,v 1.4 88/04/28 17:40:54 ouster Exp $ SPRITE (Berkeley)
  113. d26 1
  114. @
  115.  
  116.  
  117. 1.4
  118. log
  119. @Use new "if exists" mechanism, along with local.mk.
  120. @
  121. text
  122. @d12 1
  123. a12 1
  124. # $Header: Makefile.test,v 1.3 88/04/25 13:20:36 ouster Exp $ SPRITE (Berkeley)
  125. d42 1
  126. a42 1
  127. #include    $SYSMAKEFILE
  128. @
  129.  
  130.  
  131. 1.3
  132. log
  133. @Don't use version.h junk.
  134. @
  135. text
  136. @d12 1
  137. a12 1
  138. # $Header: Makefile.test,v 1.2 88/04/25 09:26:37 ouster Exp $ SPRITE (Berkeley)
  139. a35 4
  140. # The label below is used as a special trigger for Makefile.sed scripts
  141. # to use to add extra stuff to the Makefile:
  142. # @@(SPECIALS)
  143.  
  144. d37 1
  145. a37 1
  146. #include    <command.mk>
  147. d39 5
  148. a43 3
  149. # Another label, for triggering Makefile.sed commands AFTER command.mk
  150. # is included:
  151. # @@(POSTINCLUDE)
  152. @
  153.  
  154.  
  155. 1.2
  156. log
  157. @Revised to make look like Makefile.command, except no install.
  158. @
  159. text
  160. @d12 1
  161. a12 1
  162. # $Header: Makefile.command,v 1.2 88/04/01 18:33:47 deboor Exp $ SPRITE (Berkeley)
  163. d47 1
  164. a47 1
  165. $(PROGRAM)    : $(OBJS) $(LIBS) MAKECMD
  166. @
  167.  
  168.  
  169. 1.1
  170. log
  171. @Initial revision
  172. @
  173. text
  174. @d2 1
  175. a2 1
  176. # Prototype Makefile for src/test/* directories.
  177. d7 2
  178. a8 1
  179. # It was generated from @@(TEMPLATE) on @@(DATE)
  180. d12 1
  181. a12 1
  182. # $Header: Makefile.test,v 2.2 87/10/16 10:43:18 brent Exp $ SPRITE (Berkeley)
  183. d16 10
  184. a25 11
  185. LIBDIR = /sprite/lib
  186. INCLDIR = /sprite/lib/include
  187. MISCLIB = /sprite/src/lib/misc
  188. ATTLIB = /sprite/att/lib
  189. # UNIXLIB, ATTINCL, and ATTLINT are to be set for Makefiles in /sprite/att/...
  190. # However, ATTLINT is still blank because no lint library exists.
  191. UNIXLIB = 
  192. ATTINCL =
  193. ATTLINT =
  194. LIBS = ${UNIXLIB} ${LIBDIR}/libc.a
  195. LINTDIR = ${LIBDIR}/lint
  196. d27 5
  197. a31 1
  198. SPRITEHOME = /sprite
  199. d33 2
  200. a34 1
  201. DIRECTORY = dir-name
  202. d36 3
  203. a38 1
  204. INSTALLDIR = /sprite/test/${DIRECTORY}
  205. d40 2
  206. a41 6
  207. IFLAGS = -I. -I${ATTINCL} -I${INCLDIR}
  208. DBX =       -g
  209. PROFILE =
  210. DFLAGS =
  211. CFLAGS =  ${DBX} ${IFLAGS} ${DFLAGS}
  212. PCFLAGS = ${DBX} ${IFLAGS} ${DFLAGS} ${PROFILE} 
  213. d43 3
  214. a45 1
  215. CTFLAGS = -t
  216. d47 2
  217. a48 3
  218. # Define a bunch of commands in /bin because we might be compiling sprite
  219. # versions of one of them in this directory, and we don't want to get
  220. # the wrong one.
  221. d50 2
  222. d53 1
  223. a53 82
  224. LINT = ${SPRITEHOME}/bin/lint
  225. BIN = /bin
  226. CC = ${BIN}/cc -m68010
  227. AS = ${BIN}/as -m68010
  228. LD = ${BIN}/ld
  229. CP = ${BIN}/cp
  230. RM = ${BIN}/rm
  231. MV = ${BIN}/mv
  232. CP = ${BIN}/cp
  233. ECHO = ${BIN}/echo
  234. CTAGS = ${BIN}/ctags
  235. MKVERSION = ${SPRITEHOME}/bin/mkversion
  236.  
  237.  
  238. OBJS =    Cfile.o
  239. RMOBJS = Cfile.o
  240.  
  241. CSRCS = Cfile.c
  242.  
  243. SRCS = ${CSRCS}
  244.  
  245. HDRS = header-file.h
  246.  
  247. PROG = program
  248.  
  249. LINTFLAGS = ${IFLAGS} -u 
  250. LINTLIBS = ${ATTLINT} ${LINTDIR}/libc.ln
  251.  
  252. ALLSRCS = ${SRCS} ${HDRS} Makefile
  253.  
  254. .c.o: .EXPORT
  255.     ${RM} -f $*.o
  256.     ${CC} ${CFLAGS} -c ${I} $*.c
  257.  
  258. all: ${PROG} 
  259.  
  260. ${PROG}: ${OBJS} ${LIBS}
  261.     @@${ECHO} "Generating date stamp"
  262.     @@${MKVERSION} > version.h
  263.     ${RM} -f $@@ version.o
  264.     ${CC} -c ${CFLAGS} ${MISCLIB}/version.c
  265.     ${LD} -e start ${OBJS} version.o ${LIBS} -o $@@
  266.  
  267. # By default, without any subdirectories, "make makemake" will do nothing.
  268. # If there are any further subdirectories, it should recursively makemake 
  269. # them.  By using "ignore-me", I avoid the "makemake is up to date"
  270. # diagnostic.
  271.  
  272. makemake: ignore-me
  273.  
  274. ignore-me:
  275.  
  276. install! ${INSTALLDIR}/${PROG}
  277.  
  278. # In normal operation, move the binary to the installed directory.  For
  279. # now, rdist it and then delete it.  In any case, there's no point in leaving 
  280. # the binary around after it is installed.
  281.  
  282. ${INSTALLDIR}/${PROG}: ${PROG}
  283.     ${SPRITEHOME}/bin/update ${PROG} ${SPRITEHOME}/bin/${PROG}
  284.     ${RDIST} -c -w ${SRCS} lust:/usr/sprite/src/${PROG}
  285. #    ${RM} -f ${INSTALLDIR}/${PROG}
  286. #    ${MV}  ${PROG} ${INSTALLDIR}
  287.     ${RM} ${PROG}
  288.     
  289. lint:    ${CSRCS} ${HDRS} ${LINTLIBS}
  290.     ${RM} -f lint
  291.     ${LINT} ${LINTFLAGS} ${CSRCS} ${LINTLIBS} > lint
  292.  
  293. clean:
  294.     ${RM} -f lint ${RMOBJS} version.h version.o
  295.  
  296. DEPFLAGS = -p
  297. DEPFILE = Makefile
  298. #include <makedepend.mk>
  299.  
  300. tags: ${HDRS} ${CSRCS}
  301.     ${RM} -f tags
  302.     ${CTAGS} ${CTFLAGS} ${HDRS} ${CSRCS}
  303.  
  304. # below is automatically generated
  305. # DO NOT DELETE THIS LINE -- make depend depends on it.
  306. @
  307.